]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Rename show-close-button signal to chrome-visible
authorverdre <verdre@v0yd.nl>
Mon, 19 Nov 2018 11:28:28 +0000 (12:28 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 31 Jan 2019 17:36:25 +0000 (17:36 +0000)
Since we no longer only show the close button but the whole window
chrome on hover, change the name of the signal.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/346

js/ui/workspace.js

index a60b6a20900d549dfa5bdd6351b00579b61ff77b..31892e56af30bf7fe1c49db12ff5ed3f9dff006a 100644 (file)
@@ -670,7 +670,7 @@ var WindowOverlay = class {
             return;
 
         this._animateVisible();
-        this.emit('show-close-button');
+        this.emit('chrome-visible');
     }
 
     _onHideChrome() {
@@ -1855,7 +1855,7 @@ var Workspace = class {
 
         this.actor.add_actor(clone.actor);
 
-        overlay.connect('show-close-button', () => {
+        overlay.connect('chrome-visible', () => {
             let focus = global.stage.key_focus;
             if (focus == null || this.actor.contains(focus))
                 clone.actor.grab_key_focus();